package org.example.service;


import org.springframework.stereotype.Component;

//将服务降级代码与业务层代码分离，降低耦合
@Component
public class FallbackService implements HystrixService{
    @Override
    public String test_ok() {
        return "---------- ok -------------";
    }

    @Override
    public String test_timeOut() {
        return "---------- timeout -------------";
    }
}
